<?php defined('BASEPATH') OR exit('No direct script access allowed');

	class obgyne_dir_info_class extends CI_Model {
		
		public function obgyne_dir_info($post){
			if(isset($post['intID'])){
				$intID = stripslashes(filter_var($post['intID'], FILTER_SANITIZE_STRING));
				$this->db->where(array('intOBDirectoryID'=>$intID));
			} 
			$query = $this->db->get('jtn_obgyne_directory_info')->result_array();
			$query = current($query);
		
			if(trim($query['intOBDirectoryID'])=="") {
				return 0;
			} else {
				return $query;
			}
		}
	} // end class
?>